﻿using System.Collections.Generic;
using System.Xml.Serialization;

namespace HamcoWcs.Models.MesMessages
{
    public class MesMessageBody
    {
        [XmlElement("LINENAME")]
        public string LineName { get; set; }
        [XmlElement("MACHINENAME")]
        public string MachineName { get; set; }
        [XmlElement("PORTNAME")]
        public string PortName { get; set; }
        [XmlElement("BOXNAME")]
        public string BoxName { get; set; }
        [XmlElement("BOXSETCODE")]
        public string BoxSize { get; set; }
        [XmlElement("BOXLIST")]
        public List<BoxItem> BoxList { get; set; }
        [XmlElement("BOX")]
        public Box Box { get; set; }
    }

    //public class Box
    //{
    //    [XmlElement("BOXNAME")]
    //    public string BoxName { get; set; }
    //    [XmlElement("PALLETBOXQUANTITY")]
    //    public string PalletBoxQuantity { get; set; }
    //    [XmlElement("PRODUCTQUANTITY")]
    //    public string ProductQuantity { get; set; }
    //    [XmlElement("SELECTEDQUANTITY")]
    //    public string SelectedQuantity { get; set; }
    //    [XmlElement("PRODUCTSPECNAME")]
    //    public string ProductSpecName { get; set; }
    //    [XmlElement("PRODUCTGRADE")]
    //    public string ProductGrade { get; set; }
    //    [XmlElement("OWNERTYPE")]
    //    public string OwnerType { get; set; }
    //    [XmlElement("OWNERID")]
    //    public string OwnerId { get; set; }
    //    [XmlElement("PROCESSOPERATIONNAME")]
    //    public string ProcessOperationName { get; set; }
    //    [XmlElement("PRODUCTLIST")]
    //    public List<Product> PRODUCTLIST { get; set; }
    //}

    //public class Product
    //{
    //    [XmlElement("PANELBYPASSFLAG")]
    //    public string PanelByPassFlag { get; set; }
    //    [XmlElement("POSITION")]
    //    public string Position { get; set; }
    //    [XmlElement("PRODUCTNAME")]
    //    public string Name { get; set; }
    //    [XmlElement("PRODUCTGRADE")]
    //    public string Grade { get; set; }
    //    [XmlElement("DEMURAFLAG")]
    //    public string DemuraFlag { get; set; }
    //    [XmlElement("BOXSETCODE")]
    //    public string BoxSetCode { get; set; }
    //    [XmlElement("WORKORDERTYPE")]
    //    public string WorkOrderType { get; set; }
    //    [XmlElement("SORTINGCODE")]
    //    public string SortingCode { get; set; }
    //    [XmlElement("PDSFLAG")]
    //    public string PdsFlag { get; set; }

    //}

    public class BoxItem
    {
        [XmlElement("BOXNAME")]
        public string Name { get; set; }
    }
}
